package com.supermap.gwfs.datashare.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.supermap.gwfs.datashare.dao.IStationInfoDao;
import com.supermap.gwfs.datashare.entity.StationInfo;
import com.supermap.gwfs.datashare.util.PageData;

/**  
 * @Description: 站点信息service
 * @author zhoujian
 * @date 2017-6-12
 * @version V1.0 
 */
@Service
public class StationInfoService
{
	@Resource
	private IStationInfoDao stationInfoDao ; 
	
	public List<StationInfo> getStationInfos(PageData pd) throws Exception
	{
		if (pd.getString("stationId") != null)
		{
			//站点ID可为数组
			String[] stationIds = pd.getString("stationId").split(",");
			pd.put("stationIds", stationIds);
		}
		return stationInfoDao.getStationInfos(pd);
	}
}
